﻿// using Sirocco.Entity.General;
// using Sirocco.Entity.Organization;

namespace SiroccoTest.EntityTest
{
    ///// <summary>
    /////This is a test class for ContactTest and is intended
    /////to contain all ContactTest Unit Tests
    /////</summary>
    //[TestClass()]
    //public class ContactSetterTest
    //{
    //    private TestContext testContextInstance;

    //    /// <summary>
    //    ///Gets or sets the test context which provides
    //    ///information about and functionality for the current test run.
    //    ///</summary>
    //    public TestContext TestContext
    //    {
    //        get
    //        {
    //            return testContextInstance;
    //        }
    //        set
    //        {
    //            testContextInstance = value;
    //        }
    //    }

    //    #region Additional test attributes
    //    // 
    //    //You can use the following additional attributes as you write your tests:
    //    //
    //    //Use ClassInitialize to run code before running the first test in the class
    //    //[ClassInitialize()]
    //    //public static void MyClassInitialize(TestContext testContext)
    //    //{
    //    //}
    //    //
    //    //Use ClassCleanup to run code after all tests in a class have run
    //    //[ClassCleanup()]
    //    //public static void MyClassCleanup()
    //    //{
    //    //}
    //    //
    //    //Use TestInitialize to run code before running each test
    //    //[TestInitialize()]
    //    //public void MyTestInitialize()
    //    //{
    //    //}
    //    //
    //    //Use TestCleanup to run code after each test has run
    //    //[TestCleanup()]
    //    //public void MyTestCleanup()
    //    //{
    //    //}
    //    //
    //    #endregion

    //    /// <summary>
    //    ///A test for Id
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Id()
    //    {
    //        Contact target = new Contact();
    //        Assert.AreEqual(target.Id, -1);
    //    }

    //    /// <summary>
    //    ///A test for Prefix
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Prefix()
    //    {
    //        Contact target = new Contact();
    //        string expected = "Mr.";
    //        string actual;
    //        target.Prefix = expected;
    //        actual = target.Prefix;
    //        Assert.AreEqual(expected, actual);
    //    }

    //    /// <summary>
    //    ///A test for FirstName1
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_FirstName()
    //    {
    //        Contact target = new Contact();
    //        string expected = "John";
    //        string actual;
    //        target.FirstName1 = expected;
    //        actual = target.FirstName1;
    //        Assert.AreEqual(expected, actual);
    //    }

    //    /// <summary>
    //    ///A test for MiddleName3
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_MiddleName()
    //    {
    //        Contact target = new Contact();
    //        string expected = "Christina";
    //        string actual;
    //        target.MiddleName3 = expected;
    //        actual = target.MiddleName3;
    //        Assert.AreEqual(expected, actual);
    //    }

    //    /// <summary>
    //    ///A test for LastName2
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_LastName()
    //    {
    //        Contact target = new Contact();
    //        string expected = "Doe";
    //        string actual;
    //        target.LastName2 = expected;
    //        actual = target.LastName2;
    //        Assert.AreEqual(expected, actual);
    //    }

    //    /// <summary>
    //    ///A test for Suffix
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Suffix()
    //    {
    //        Contact target = new Contact();
    //        string expected = "PH.D";
    //        string actual;
    //        target.Suffix = expected;
    //        actual = target.Suffix;
    //        Assert.AreEqual(expected, actual);
    //    }

    //    /// <summary>
    //    ///A test for Gender
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Gender()
    //    {
    //        Contact target = new Contact();
    //        string expected = "M";
    //        string actual;
    //        target.Gender = expected;
    //        actual = target.Gender;
    //        Assert.AreEqual(expected, actual);
    //    }

    //    /// <summary>
    //    ///A test for DateOfBirth
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_DateOfBirth()
    //    {
    //        Contact target = new Contact(); 
    //        DateTime expected = DateTime.Now.ToUniversalTime();

    //        target.DateOfBirth = expected;
    //        DateTime actual = target.DateOfBirth;

    //        Assert.AreEqual(actual, expected);
    //    }

    //    /// <summary>
    //    /// A test for Phone
    //    /// Test: Associate a phone number to the contact. Count 1 = 1.
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Phone()
    //    {
    //        Phone phone = new Phone { CountryCode = "+60", AreaCode = "03", PhoneNumber = "7552525", Extension = "6012" };

    //        Contact target = new Contact();
    //        target.Phone.Add(phone);

    //        int expected = 1;
    //        Assert.AreEqual(target.Phone.Count, expected);
    //    }

    //    /// <summary>
    //    /// A test for Email
    //    /// Test: Associate an email to the contact. Count 1 = 1.
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Email()
    //    {
    //        Email email = new Email
    //        {
    //            Address = "test@email.net",
    //            Category =
    //                new GenericCategory { Code = "PSNL", Name = "Personal", GroupName = "Email" }
    //        };
            
    //        Contact target = new Contact();
    //        target.Email.Add(email);

    //        int expected = 1;
    //        Assert.AreEqual(target.Email.Count, expected);
    //    }

    //    /// <summary>
    //    /// A test for Company
    //    /// Test: Associate a company to the contact. Count 1 = 1.
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Company()
    //    {
    //        Company company = new Company
    //        {
    //            Line1 = "Line 1",
    //            Line2 = "Line 2",
    //            Line3 = "Line 3",
    //            PostalCode = "76577",
    //            City = "Kuala Lumpur",
    //            Region = "Kuala Lumpur",
    //            State = "Wilayah Persekutuan"
    //        };

    //        Contact target = new Contact();
    //        target.Company.Add(company);

    //        int expected = 1;
    //        Assert.AreEqual(target.Company.Count, expected);
    //    }

    //    /// <summary>
    //    ///A test for Address
    //    /// Test: Associate an address to the contact. Count 1 = 1.
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_Address()
    //    {
    //        Address address = new Address
    //        {
    //            Line1 = "Line 1",
    //            Line2 = "Line 2",
    //            Line3 = "Line 3",
    //            PostalCode = "76577",
    //            City = "Kuala Lumpur",
    //            Region = "Kuala Lumpur",
    //            State = "Wilayah Persekutuan"
    //        };

    //        Contact target = new Contact();
    //        target.Address.Add(address);

    //        int expected = 1;
    //        Assert.AreEqual(target.Address.Count, expected);
    //    }

    //    /// <summary>
    //    ///A test for Contact Constructor
    //    ///</summary>
    //    [TestMethod()]
    //    public void ContactSetterTest_ContactConstructor()
    //    {
    //        Contact target = new Contact();

    //        Assert.AreNotSame(target, null);
    //    }
    //}
}